USE DB_TCC
IF EXISTS(SELECT 1 FROM SYSOBJECTS WHERE NAME LIKE 'P_CLIENTE_EXCLUIR')
	DROP PROCEDURE P_CLIENTE_EXCLUIR
GO
CREATE PROCEDURE P_CLIENTE_EXCLUIR(
	@IDCLIENTE	VARCHAR(100),
	@USUARIO	VARCHAR(100))
AS BEGIN
	UPDATE
		CLIENTE
	SET
		CLI_ICATIVO = 'N',
		CLI_NMUSUARIOALTERACAO = @USUARIO,
		CLI_DTHRALTERACAO = GETDATE()
	FROM
		CLIENTE
	WHERE
		CLI_IDCLIENTE = @IDCLIENTE
END